
package galaxy.app.network.rpc.handler;

import io.netty.channel.ChannelHandler.Sharable;
import io.netty.channel.ChannelHandlerContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import galaxy.app.log.LogHelper;
import galaxy.app.network.rpc.packet.HeartbeatPacket;

/**
 */
@Sharable
public class HeartbeatHandler extends BaseChannelHandler<HeartbeatPacket> {

    // NettyRpcClient client;

    /**
     * use by server
     */
    public HeartbeatHandler() {
        super(HeartbeatPacket.class);
    }

    @Override
    protected void onChannelRead(ChannelHandlerContext ctx, HeartbeatPacket packet) {
        LogHelper.debug("receive heartbeat from ... {}", packet);
    }
}
